load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library")

cc_binary(
    name = "t1",
    srcs = glob(["t1.cc"]),
)

cc_binary(
    name = "t2",
    srcs = glob(["t2.cc"]),
)

cc_binary(
    name = "t3",
    srcs = glob(["t3.c"]),
)

cc_binary(
    name = "t4",
    srcs = glob(["t4.cc"]),
)

cc_library(
    name = "t5-shm",
    #srcs = glob(["t4.cc"]),
    hdrs = ["t5/config.h"],
)


cc_binary(
    name = "t5-producer",
    srcs = ["t5/producer.c"],
    deps = ["t5-shm"]
)

cc_binary(
    name = "t5-consumer",
    srcs = ["t5/consumer.c"],
    deps = ["t5-shm"]
)

cc_binary(
    name = "t6",
    srcs = ["t6.cc"],
)
